<template>
  <navigator class="list" :url="`/pages/courseTypeDetail/courseTypeDetail?id=${data.id}`">
      <image :src="data.image"></image>
      <view class="right">
        <view class="title">{{data.title}}</view>
        <view class="label">
          <text v-for="(item,index) in data.label" :key="index">{{item}}</text>
        </view>
        <view class="num">
          <view class="red"><text>￥</text><text class="price">{{data.money}}</text></view>
          <text>33人正在学习</text>
        </view>
      </view>
  </navigator>
</template>
<script>
export default {
  name:'online-live-list',
  props:{
    data:{
      type:Object,
      default:()=>{}
    }
  },
  data(){
    return{

    }
  }
}
</script>
<style lang="scss" scoped>
.list{
  display: flex;
  image{
    width: 340rpx;
    height: 180rpx;
    border-radius: $border-radius-base;
  }
  .right{
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: $spacing-base;
    .title{
      flex: 1;
    }
    .label{
      display: flex;
      font-size: $font-sm;
      text{
        background: rgba(44, 142, 255, .06);
        color: $font-color-spec;
        padding:0 $spacing-base;
        border-radius: $border-radius-base;
      }
    }
  }
  .num{
    margin-top: 10rpx;
    color: $font-color-base;
    display: flex;
    justify-content: space-between;
    text{
      
      font-size: $font-sm;
    }
    .price{
      font-size: $font-lg;
    }
    .red{
      color:$font-color-red;
    }
  }
}
</style>